package com.ruoyi.cluster.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 基础信息——集群列对象 kw_cluster_info
 * 
 * @author gonianer
 * @date 2023-11-30
 */
public class KwClusterInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增键 */
    private Long id;

    /** 当前子集群的编号 */
    @Excel(name = "当前子集群的编号")
    private String innerId;

    /** 所属的大集群的编号 */
    @Excel(name = "所属的大集群的编号")
    private String hclusterId;

    /** 当前子集群的角色，可选为master,backup */
    @Excel(name = "当前子集群的角色，可选为master,backup")
    private String role;

    /** 添加人 */
    @Excel(name = "添加人")
    private String createUser;

    /** 修改人 */
    @Excel(name = "修改人")
    private String updateUser;

    /** 备注 */
    @Excel(name = "备注")
    private String comment;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setInnerId(String innerId) 
    {
        this.innerId = innerId;
    }

    public String getInnerId() 
    {
        return innerId;
    }
    public void setHclusterId(String hclusterId) 
    {
        this.hclusterId = hclusterId;
    }

    public String getHclusterId() 
    {
        return hclusterId;
    }
    public void setRole(String role) 
    {
        this.role = role;
    }

    public String getRole() 
    {
        return role;
    }
    public void setCreateUser(String createUser) 
    {
        this.createUser = createUser;
    }

    public String getCreateUser() 
    {
        return createUser;
    }
    public void setUpdateUser(String updateUser) 
    {
        this.updateUser = updateUser;
    }

    public String getUpdateUser() 
    {
        return updateUser;
    }
    public void setComment(String comment) 
    {
        this.comment = comment;
    }

    public String getComment() 
    {
        return comment;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("innerId", getInnerId())
            .append("hclusterId", getHclusterId())
            .append("role", getRole())
            .append("createTime", getCreateTime())
            .append("createUser", getCreateUser())
            .append("updateTime", getUpdateTime())
            .append("updateUser", getUpdateUser())
            .append("comment", getComment())
            .toString();
    }
}
